package inheritance_package;

class AT
{
	public String printThis()
	{
		return "AT";
	}
}
class BT extends AT
{
	public String printThis()
	{
		return "BT";
	}
}
class CT extends BT
{
	public String printThis()
	{
		return "CT";
	}
}
class DT extends CT
{
	public String printThis()
	{
		return "DT";
	}
}
public class InheritanceExample 
{
	public static void main(String[] args) 
	{
		AT s = new DT();
		System.out.println(s.printThis());
	}

}
